package ar.edu.unlp.info.tesis.database.operator;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Expression;

public class LikeObjectRestriction extends OperatorRestriction {

	public LikeObjectRestriction(String field, Object value) {
		super(field, value);
	}

	@Override
	public Criterion getExpresion() {
		return Expression.like(this.getField(), this.getValue());

	}

}
